import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/sellerPage',
    name: 'sellerPage',
    component: () => import('@/views/Seller/SellerPage')
  },
  {
    path: '/trendPage',
    name: 'trendPage',
    component: () => import('@/views/Trend/TrendPage')
  },
  {
    path: '/mapPage',
    name: 'mapPage',
    component: () => import('@/views/Map/MapPage')
  },
  {
    path: '/rankPage',
    name: 'rankPage',
    component: () => import('@/views/Rank/RankPage')
  },
  {
    path: '/hotPage',
    name: 'hotPage',
    component: () => import('@/views/Hot/HotPage')
  },
  {
    path: '/stockPage',
    name: 'stockPage',
    component: () => import('@/views/Stock/StockPage')
  },
  {
    path: '/screenPage',
    name: 'screenPage',
    component: () => import('@/views/Screen/ScreenPage')
  },
  {
    path: '/',
    redirect: 'screenPage'
  }
]

const router = new VueRouter({
  routes
})

export default router
